package com.xhwl.logistics.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;

import java.util.Date;

@Setter
@Getter
@TableName("`cent_vehicle`.`vehicle_card`")
public class VehicleCard {

    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;


    private Integer projectId;

    private String projectName;


    private Integer parkingLotId;

    @TableField("park_name")
    private String parkingLotName;


    private String name;

    private Integer cardType;

    private String chargeRule;


    private Integer rechargeType;

    private Integer rechargeAmount;

    private Integer freeRechargeType;

    private Integer freeRechargeAmount;

    private Integer rechargeMoney;


    private String thirdRuleId;


    private Integer creatorAccountId;

    private String creatorAccountName;

    private Integer editorAccountId;

    private String editorAccountName;

    private Integer deleterAccountId;

    private String deleterAccountName;


    @TableLogic(value = "0", delval = "1")
    private Integer deleted;


    @TableField(fill = FieldFill.INSERT)
    private Date createdAt;

    @TableField(fill = FieldFill.UPDATE)
    private Date updatedAt;

}
